<?php if(!empty($subvo)){
    $v = $subvo;
    $subvo = '';
}
if(!empty($subsubvo)){
    $v = $subsubvo; 
    $subsubvo = '';
}
?>

<div class="viewBox myBox<?php echo $v['id'];?>" <?php if($_SESSION[C('USER_AUTH_KEY')]){?> sortID="<?php echo $v['sort'];?>" modulesID="<?php echo $v['id'];?>" title="<?php echo $v['title'];?>" deleteUrl="<?php echo U('Admin/Modules/delete',array('id'=>$v['id']));?>" settingUrl="<?php echo U('Admin/Modules/edit',array('id'=>$v['id']));?>" isEdit="0"<?php }?>>
  <?php if(!empty($v['dataname'])){
                $v['content'] = $v['dataname'];
                
        }else{
            $v['content'] = unserialize($v['content']);
        }
         ?> 
  <div class="panel panel-primary"> 
    <?php include(TMPL_PATH.'Home/TemplateDefault/Public-Moduletitle'.C('TMPL_TEMPLATE_SUFFIX')); ?>
    <div class="panel-body" style="position:relative;">
    
    
    
    
    
    
      <ul class="list-group categoryList<?php echo $v['id'];?>" style="position:absolute; min-width:80px; z-index:3000;left:0; overflow-y:scroll; background:#fff; top:-3000px;">
      
      
      
        <?php foreach($v['content'] as $key => $vo){?>
        <li class="list-group-item list<?php echo $key+1;?>"> <a href="__APP__/<?php echo $vo['name'];?>"><img src="<?php echo getThumbPath($vo['img_url']);?>" height="14">&nbsp;<?php echo $vo['title'];?></a></li>
        <?php }?>
      </ul>
      <a href="javascript:void(0);" class="btnCategoryList<?php echo $v['id'];?>"><i class="fa fa-bars"></i></a>
      
      
      <i id="free<?php echo $v['id'];?>" style="position:absolute; bottom:0; left:20px; border-bottom:5px solid #fff;display:none;
    border-bottom: 5px solid #fff;
    border-left: 5px solid #ccc;
    border-right: 5px solid #ccc; border-left-color:rgba(0,0,0,0.00); border-right-color:rgba(0,0,0,0.00); z-index:2001"></i>
      
      
      
      
      <form class="bs-example bs-example-form" action="<?php echo $v['formAction'];?>" data-example-id="input-group-with-button" style="border:2px solid #ccc; background:#fff; border:1px solid #ccc; top:0; border-radius:30px; margin-left:40px;">
        <div class="row">
          <div class="col-lg-12" style="padding:0;">
            <div class="input-group">
              <input type="text" class="form-control" style="border-color:transparent; border-radius:30px 0 0 30px; box-shadow:none;" name="keywords" value="<?php echo $keywords;?>" placeholder="输入关键词">
              <span class="input-group-btn">
              <button style="border-color:transparent; border-radius:0 30px 30px 0;" class="btn btn-default" type="submit"><i class="glyphicon glyphicon-search"></i></button>
              </span> </div>
          </div>
        </div>
      </form>
      <!-- --> 
    </div>
  </div>
  <script>
  $(document).ready(function(e) {
	  
	  
	  $('.btnCategoryList<?php echo $v['id'];?>').click(function(e) {
		  $('html,body').addClass('ovfHiden');
		  $('#CartBox_layout<?php echo $v['id'];?>').show();
		  $('.myBox<?php echo $v['id'];?> .categoryList<?php echo $v['id'];?>').css({'height':($(window).height()-$('.myBox<?php echo $v['id'];?>').height())+'px','top':$(window).height()*-1+'px'});
		  $('#CartBox_layout<?php echo $v['id'];?>').click(function(e) {
             $(this).hide();
			 $('.categoryList<?php echo $v['id'];?>').animate({'top':$(window).height()*-1+'px'},500);
			 $('#free<?php echo $v['id'];?>').hide();
			 $('html,body').removeClass('ovfHiden');
        });
        $('.categoryList<?php echo $v['id'];?>').animate({'top':$('.myBox<?php echo $v['id'];?>').height()+'px'},500,'',function(){
			$('#free<?php echo $v['id'];?>').show();
		});
    });
	  //$('html,body').addClass('ovfHiden');
	  //$('body').css({'height':($(window).height()-$('.myBox<?php echo $v['id'];?>').height())+'px','overflow-y':'hidden'});
	  
});

    
	  
    
      
  </script>
  <div id="CartBox_layout<?php echo $v['id'];?>" style="position:fixed; top:0; left:0; z-index:2000; width:100%; height:10000px; background:rgba(0,0,0,0.7); display:none;"></div>
</div>
